﻿{include file="header.tpl"}

<form name="blogcommentsEditForm" id="blogcommentsEditForm" action="" method="post">

<input type="hidden" name="action" id="action" value="{$formAction}" />
<input type="hidden" name="operation" id="operation" value="edit" />
<input type="hidden" name="id" id="id" value="{$id}" />

<div class="left-column clear">
	<p>Fecha de creación</p>
	<input type="text" name="created" id="created" class="textfield readonly" readonly="readonly" value="{if isset($created)}{$created}{/if}" />
	<p>Autor</p>
	<input type="text" name="author" id="author" class="textfield readonly" readonly="readonly" value="{if isset($author)}{$author}{/if}" />
	<p>Imagen</p>
{if isset($picture) and strlen($picture)}
	<a href="{$pictureUrl}" class="thumb"><img src="{$pictureThumb}" /></a>
{else}
	No hay ninguna imagen asociada al comentario.
{/if}
</div>

<div class="right-column">
	<p>Estado</p>
	<input type="text" name="status" id="status" class="textfield readonly" readonly="readonly" value="{if isset($status)}{$status}{/if}" />
	<p>Contenido</p>
	<textarea name="content" class="textarea readonly" readonly="readonly">{if isset($content)}{$content}{/if}</textarea>
</div>

<div class="right-column clear align-right">
	{if $statusInt eq 0 or $statusInt eq 2}
		<input type="button" id="validateCommentButton" name="validateCommentButton" value="Validar" class="submitbutton" />
	{/if}
	{if $statusInt eq 0 or $statusInt eq 1}
		<input type="button" id="blockCommentButton" name="blockCommentButton" value="Bloquear" class="submitbutton" />
	{/if}
</div>

</form>

{include file="footer.tpl"}
